<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Member\Controller;
use Think\Controller;
class PayinController extends IndexController {
	
	//支付宝
    public function indexAction(){
		$this->display();
    }
	
	//财付通
	public function tenpayAction(){
		$this->display();
    }
	
	public function listAction(){
		
		$model=new \Consume\Model\ConsumeModel();
		foreach($model->GetMyPayin(
				//排序
				array(
					array('order'=>'id','name'=>'交易编号'),
					array('order'=>'dateline','name'=>'创建时间'),
					array('order'=>'subject','name'=>'摘要'),
					array('order'=>'amount','name'=>'交易金额(元)'),
					array('order'=>'process','name'=>'状态'),
					array('order'=>'process','name'=>'操作')
				)
			) as $key=>$value){
			$this->assign($key,$value);
		}

		$this->display();
	}
	
}